class Flower:
    def __init__(self,name,color):
        self.name = name
        self.color =color
    def talk(self):
        print(f'我是{self.name},我的颜色是{self.color}')
        

flower1 = Flower('玫瑰花','红色')
flower1.talk()